package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.TeachplanDTO;
import com.xuecheng.api.content.model.TeachplanMediaDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 */
public interface TeachplanService extends IService<Teachplan> {


    /**
     * 根据课程Id查询课程计划（树形结构）
     * @param courseId
     * @param companyId
     * @return
     */
    TeachplanDTO queryTreeNodesByCourseId(Long courseId,Long companyId);

    //新建或修改
    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO dto, Long companyId);

    /**
     * 根据课程计划Id删除课程计划信息
     * @param teachPlanId {@link Long} 课程计划Id
     * @param companyId {@link Long} 公司Id
     */
    void removeTeachPlan(Long teachPlanId,Long companyId);

    //课程关联媒资
    TeachplanMediaDTO associateMedia(TeachplanMediaDTO teachplanMediaDTO, Long companyId);
}